package com.app.model;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 房屋片区
 * </p>
 *
 * @author yoominic
 * @since 2025-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_fw_area")
public class FwArea implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 片区名称
     */
    @ApiModelProperty(value = "片区名称")
    private String areaName;

    @TableField(exist = false)
    private String name;

    /**
     * 状态  0无效 1有效
     */
    @ApiModelProperty(value = "状态  0无效 1有效")
    private Integer status;

    /**
     * 创建人id
     */
    @ApiModelProperty(value = "创建人id")
    private Integer createId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 修改人id
     */
    @ApiModelProperty(value = "修改人id")
    private Integer updateId;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private List<FwStreet> fwStreetList;


}
